package cn.lasse.springframework.event;

import cn.lasse.springframework.context.event.ApplicationContextEvent;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class CustomEvent extends ApplicationContextEvent {

    private Long id;
    private String message;

    /**
     * Constructs a prototypical Event.
     *
     * @param source The object on which the Event initially occurred.
     * @throws IllegalArgumentException if source is null.
     */
    public CustomEvent(Object source,Long id,String message) {
        super(source);
        this.id=id;
        this.message=message;
    }
}
